<script type="text/javascript">
    $(function() {
        $.fn.dataGridOptions.formSubFun("#form",'/modules/user/score/rule/doScoreRuleEdit.html');
    });
</script>
<form id="form" method="post" enctype="multipart/form-data">
<div class="popForm sForm">
	<input type="hidden"  name="id" value="${scoreRule.id}">
	<div class="formitm">
		<label class="lab">编号：</label>
		<div class="ipt">
			${scoreRule.id!}
		</div>
	</div>
	<div class="formitm">
		<label class="lab">名称：</label>
		<div class="ipt">
			${scoreRule.name!}
		</div>
	</div>
	<div class="formitm">
		<label class="lab">积分：</label>
		<div class="ipt"><input type="text" value="${scoreRule.value}" name="value" class="easyui-validatebox validatebox-text" data-options="required: true" style="width:80px;"></div>
	</div>
	<div class="formitm">
		<label class="lab">状态：</label>
		<div class="ipt">
			<select name="status" id="status">
				<option value="1" <#if scoreRule.status==1>selected="selected"</#if>>启用</option>
				<option value="0" <#if scoreRule.status==0>selected="selected"</#if>>禁用</option>
			</select>
		</div>
	</div>
	<div class="formitm">
		<label class="lab">积分行为：</label>
		<div class="ipt">
			<select name="behavior" id="behavior">
				<option value="1" <#if scoreRule.behavior==1>selected="selected"</#if>>获取</option>
				<option value="2" <#if scoreRule.behavior==2>selected="selected"</#if>>消耗</option>
				<option value="0" <#if scoreRule.behavior==0>selected="selected"</#if>>不变</option>
			</select>
		</div>
	</div>
	<div class="formitm">
		<label class="lab">备注：</label>
		<div class="ipt">
			${scoreRule.remark!}
		</div>
	</div>
	<div class="formitm">
		<label class="lab">添加时间：</label>
		<div class="ipt">
			${scoreRule.addTime!}
		</div>
	</div>
	<input type="hidden" name="name" value="${scoreRule.name}">
	<input type="hidden" name="nid" value="${scoreRule.nid}">
	<input type="hidden" name="ruleNid" value="${scoreRule.ruleNid}">
	<input type="hidden" name="remark" value="${scoreRule.remark}">
	<input type="hidden" name="addTime" value="<#if scoreRule.addTime?? >${scoreRule.addTime?string('yyyy-MM-dd HH:mm:ss')}</#if>">
</div>
</form>

